package cn.schoolwow.quickserver.domain;

import cn.schoolwow.quickserver.request.HttpRequest;
import cn.schoolwow.quickserver.request.HttpRequestImpl;
import cn.schoolwow.quickserver.response.HttpResponse;
import cn.schoolwow.quickserver.response.HttpResponseImpl;
import cn.schoolwow.quickserver.session.HttpSession;
import cn.schoolwow.quickserver.session.HttpSessionImpl;

import java.net.Socket;

public class Client {
    /**
     * 套接字
     */
    public Socket socket;

    /**
     * 请求信息
     */
    public HttpRequestMeta httpRequestMeta = new HttpRequestMeta();

    /**
     * 请求接口
     */
    public HttpRequest httpRequest = new HttpRequestImpl(httpRequestMeta);

    /**
     * 响应信息
     */
    public HttpResponseMeta httpResponseMeta = new HttpResponseMeta();

    /**
     * 请求接口
     */
    public HttpResponse httpResponse = new HttpResponseImpl(httpResponseMeta);

    /**
     * 会话信息
     */
    public HttpSessionMeta httpSessionMeta = new HttpSessionMeta();

    /**
     * 会话接口
     */
    public HttpSession httpSession = new HttpSessionImpl(this);

    /**
     * 服务器配置信息
     */
    public ServerConfigMeta serverConfigMeta;
}
